From 9c726a997eea87556e0a385f5b87c8cf77c7697e Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Fri, 1 Sep 2006 12:37:29 -0400 Subject: [PATCH] [POWERPC][XEN] make sure Dom0.VCPU0 is pinned to the booting CPU Signed-off-by: Jimi Xenidis Signed-off-by: Hollis Blanchard --- xen/arch/powerpc/setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/powerpc/setup.c b/xen/arch/powerpc/setup.c index 59c17f2492..47ca0c3fcb 100644 --- a/xen/arch/powerpc/setup.c +++ b/xen/arch/powerpc/setup.c @@ -344,6 +344,10 @@ static void __init __start_xen(multiboot_info_t *mbi) if (NULL == alloc_vcpu(dom0, 0, 0)) panic("Error creating domain 0 vcpu 0\n"); + /* The Interrupt Controller will route everything to CPU 0 so we + * need to make sure Dom0's vVCPU 0 is pinned to the CPU */ + dom0->vcpu[0]->cpu_affinity = cpumask_of_cpu(0); + set_bit(_DOMF_privileged, &dom0->domain_flags); /* post-create hooks sets security label */ acm_post_domain0_create(dom0->domain_id); -- 2.30.2